package com.example.myapplication.bean;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;

import java.io.Serializable;

/**

 * 描述：订单--用于数据库数据
 */
@Entity
public class OrderBean implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id(autoincrement = true)
    private long id;

    public long getMerchatid() {
        return merchatid;
    }

    public void setMerchatid(long merchatid) {
        this.merchatid = merchatid;
    }

    private long merchatid;
    private String count;
    private String title;//产品
    private String url;//图片
    private String content;//介绍
    private String price;//价格
    private String goods_type;//类型
    private String state;//状态 用户：0 代发货 1已发货 2已收获 

    private String user_id;//用户id

    private String address_id;//收获地址ID

    private String address;//产地
    private String detail_address;//详细地址

    @Generated(hash = 15581556)
    public OrderBean(long id, long merchatid, String count, String title,
            String url, String content, String price, String goods_type,
            String state, String user_id, String address_id, String address,
            String detail_address) {
        this.id = id;
        this.merchatid = merchatid;
        this.count = count;
        this.title = title;
        this.url = url;
        this.content = content;
        this.price = price;
        this.goods_type = goods_type;
        this.state = state;
        this.user_id = user_id;
        this.address_id = address_id;
        this.address = address;
        this.detail_address = detail_address;
    }

    @Generated(hash = 1725534308)
    public OrderBean() {
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getDetail_address() {
        return detail_address;
    }

    public void setDetail_address(String detail_address) {
        this.detail_address = detail_address;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getCount() {
        return count;
    }

    public void setCount(String count) {
        this.count = count;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getGoods_type() {
        return goods_type;
    }

    public void setGoods_type(String goods_type) {
        this.goods_type = goods_type;
    }

    public String getUser_id() {
        return user_id;
    }

    public void setUser_id(String user_id) {
        this.user_id = user_id;
    }

    public String getAddress_id() {
        return address_id;
    }

    public void setAddress_id(String address_id) {
        this.address_id = address_id;
    }
}
